/*
 * Exploder
 * 
 * Tero Pyylampi (218437), Jussi Tuurinkoski (211594)
 *
 * Class for clouds moving on the background.
 */

#ifndef GAMECLOUDS_H
#define GAMECLOUDS_H

#include "cocos2d.h"

class LayerBackground;

struct CloudProperties {
	cocos2d::CCSprite *CloudSprite;
	cocos2d::CCAction *CloudAction;
};

class GameClouds
{
public:
	// default constructor
	GameClouds( LayerBackground *layerBackground );
	// default destructor
	~GameClouds();

	// default update function
	void update( cocos2d::ccTime dt );

private:
	// vector of clouds
	std::vector< CloudProperties* > mClouds;
	// delay before creating the next cloud
	float mDelay;
	// pointer to the background layer
	LayerBackground *mLayerBackground;

};

#endif
